<?php
use Phalcon\Di;

return array(
    '_id' => 'adminCommentSettingsForm',
    '_form' => array(
        'action' => staticUrl(),
        'method' => 'post',
        'ajax-submit' => '#main',
        'accept-charset' => 'utf-8',
        'role' => 'form',
        'id' => 'adminCommentSettingsForm',
    ),
    'open_comment' => array(
        'label' => '开启评论',
        'userOptions' => array(),
        'error' => '',
        'description' => '为哪些角色开启评论',
        'widget' => 'Selects',
        'options' => Di::getDefault()->getShared('entityManager')->contentModelOptions('user'),
        'value' => 1,
        'validate' => array(),
        'attributes' => array(
            'class' => 'form-control',
        ),
        'required' => true,
    ),
    'comment_number' => array(
        'label' => '评论页显示数量',
        'userOptions' => array(),
        'error' => '',
        'description' => '评论页初始化显示评论的数量',
        'widget' => 'Numeric',
        'default' => 15,
        'validate' => array(),
        'attributes' => array(
            'class' => 'form-control',
        ),
        'required' => true,
    ),
    'node_comment_number' => array(
        'label' => '文章评论数量',
        'userOptions' => array(),
        'error' => '',
        'description' => '文章页评论列表初始化显示评论的数量',
        'widget' => 'Numeric',
        'default' => 15,
        'validate' => array(),
        'attributes' => array(
            'class' => 'form-control',
        ),
        'required' => true,
    ),
    'interval' => array(
        'label' => '评论间隔',
        'userOptions' => array(),
        'error' => '',
        'description' => '填入整数，时间单位为秒，用户多次评论最少的时间间隔',
        'widget' => 'Numeric',
        'default' => 15,
        'validate' => array(),
        'attributes' => array(
            'class' => 'form-control',
        ),
        'required' => true,
    ),
    'comment_type' => array(
        'label' => '内容评论',
        'userOptions' => array(),
        'error' => '',
        'description' => '为以下内容类型开启评论',
        'field' => 'list',
        'widget' => 'Checkboxs',
        'options' => Di::getDefault()->getShared('entityManager')->contentModelOptions('node'),
        'validate' => array(),
        'attributes' => array(),
        'required' => true,
    ),
    '_options' => array(
        'save' => 'config',
        'menuGroup' => array(),
        'storage' => 'm.comment.config',
        'module' => '评论',
        'title' => '设置',
        'description' => '评论模块设置',
    ),
);